import requests


url = ("https://fanyi.baidu.com/sug")
word = input("请输入你要查询的单词：")

params={
    'kw' : word
}
response = requests.post(url=url,params=params)
response.encoding='utf-8'

result = response.json()
result_str = result['data']

for i in range(len(result_str)):
    str = result_str[i]['v']
    print(str)
